package com.company.test.abstract_factory;

/**
 * @author zhangyan
 * @version $ Id: Notebook.java, v 0.1 2020/9/16 19:43 zhangyan Exp $
 */
public interface Notebook {

    void color();

    void config();

    /**
     * 华为笔记本
     */
    class HuaWeiNotebook implements Notebook {
        @Override
        public void color() {
            System.out.println("华为笔记本是华为色的");
        }

        @Override
        public void config() {
            System.out.println("华为笔记本128G超大内存");
        }
    }

    /**
     * 联想笔记本
     */
    class LenovoNotebook implements Notebook {
        @Override
        public void color() {
            System.out.println("联想笔记本是联想色的");
        }

        @Override
        public void config() {
            System.out.println("联想笔记本1一般大内存");
        }
    }
}

